home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / edu / tcndos31.zip / TCNSTALL.BAT < prev    next >
DOS Batch File  |  1995-08-18  |  11KB  |  379 lines

  1. @echo off
  2. cls
  3. if "%1" == ""  goto explain
  4. if "%1" == "?" goto explain1
  5. :install
  6. if "%1" == "C" goto installa
  7. if "%1" == "D" goto installa
  8. if "%1" == "E" goto installa
  9. if "%1" == "F" goto installa
  10. goto drivechk
  11. :installa
  12. @echo off
  13. if not "%2" == ""  goto installb
  14. if exist %1:\usa\options.lxx goto warning1
  15. if exist %1:\usa\*.* goto fail3
  16. goto chk1a 
  17. :installb
  18. if exist %1:\%2\options.lxx goto warning1
  19. if exist %1:\%2\*.* goto fail3
  20. :chk1a
  21. if "%2" == "" TCND31AB %1:\usa
  22. if not "%2" == "" TCND31AB %1:\%2
  23. :CHKBB1
  24. IF EXIST TCND31BB.EXE GOTO BB1
  25. CLS
  26. ECHO INSERT DISK 2 OF 2 WITH TCND31BB.EXE ON IT.
  27. ECHO.
  28. PAUSE
  29. GOTO CHKBB1
  30. :BB1
  31. if "%2" == "" TCND31BB %1:\usa
  32. if not "%2" == "" TCND31BB %1:\%2
  33. goto pass1
  34. :warning1
  35. cls
  36. echo WARNING!!!
  37. echo.
  38. echo A copy of the TCN program already exists.  If you continue, it will be
  39. echo overwritten and any previous work you have done will be lost.
  40. echo.
  41. echo To avoid overwriting, use the CTRL + C key combination and then type a Y
  42. echo according to the following instructions:
  43. echo.
  44. echo     1)  Press and hold the CTRL key.
  45. echo     2)  Type the letter C.
  46. echo     3)  Release both keys.  A prompt appears "Terminate batch job (Y/N)?"
  47. echo     4)  Type the letter Y.
  48. echo.
  49. echo The DOS prompt appears.  Type TCNSTALL ? to get information about changing
  50. echo install target drive and directory.
  51. echo.
  52. echo If you want to overwrite, press any other key.
  53. echo.
  54. pause
  55. cls
  56. echo Press and hold the "Y" key to overwrite all files.  When you hear
  57. echo rapid beeping sounds coming from your computer, release the "Y" key.
  58. echo When file extraction stops, hold the "Y" key down some more.
  59. echo.
  60. echo Continue this process until you get a DOS prompt.
  61. echo.
  62. goto chk1a
  63. :fail1
  64. cls
  65. echo Installation was not successful.
  66. echo.
  67. echo You typed the following command:
  68. echo.
  69. echo     TCNSTALL %1 %2
  70. echo.
  71. echo Verify the letter you specified (%1) is a valid drive.  Also, verify
  72. echo that you did NOT type a colon after the letter.
  73. echo.
  74. if not "%2" == "" echo Verify the path you specified (%2) is valid.
  75. echo.
  76. echo Type TCNSTALL with: 
  77. echo.
  78. echo      a different drive letter, or 
  79. if not "%2" == "" echo      a different path, or
  80. echo      the ? option.
  81. ECHO.
  82. goto end
  83. :fail3
  84. cls
  85. echo Installation was not attempted.
  86. echo.
  87. echo The install path that you specified is already in use.
  88. echo.
  89. echo You typed the following command:
  90. echo.
  91. echo     TCNSTALL %1 %2 
  92. echo.
  93. echo Type TCNSTALL with: 
  94. echo.
  95. echo      a different drive letter, or 
  96. if not "%2" == "" echo      a different path (option 2), or
  97. if "%2" == "" echo      a path specified (other than USA) using option 2, or
  98. echo      the ? option.
  99. echo.
  100. goto end
  101. :explain
  102. cls
  103. echo This TCNSTALL.BAT file installs version 3.1 of the TCN program for DOS 
  104. echo on your hard drive.
  105. echo.
  106. echo Example valid commands are presented below with a brief explaination.
  107. echo.
  108. echo TCNSTALL    (with no options) gives you this abbreviated information screen.
  109. echo.
  110. echo TCNSTALL ?  gives you more information about installation.
  111. echo.
  112. echo TCNSTALL C  installs the TCN program in USA (default) directory on C: drive.
  113. echo             Colon ok, not required.  Trailing backslash not allowed.
  114. echo.
  115. echo TCNSTALL C MYDIR  installs the TCN program in MYDIR (second option) directory
  116. echo                   on the C: drive.  No leading or trailing backslashes.
  117. echo.
  118. goto end
  119. :explain1
  120. echo HARDWARE REQUIREMENTS 
  121. echo.
  122. echo RAM:         640K is required with 512K free at DOS prompt.
  123. echo.
  124. echo Hard Drive:  Required, 1.0 meg mininimum, 1.5 recommended
  125. echo.
  126. echo Monitor:     VGA color recommended but not required
  127. echo.
  128. echo Mouse:       Recommended but not required.
  129. echo.
  130. echo Printer:     any generic ASCII text printer is fine
  131. echo.
  132. pause
  133. cls
  134. echo CRASHES
  135. echo.
  136. echo If the TCN program crashes during startup, insufficient memory is the
  137. echo most likely cause.
  138. echo.
  139. echo Refer to CRASHES DURING STARTUP . . . in the README.DOC file for more
  140. echo information.
  141. echo.
  142. pause
  143. goto end
  144. :drivechk
  145. echo on
  146. if "%1" == "c" goto installa
  147. if "%1" == "C:" goto ginstall
  148. if "%1" == "c:" goto ginstall
  149. if "%1" == "d" goto installa
  150. if "%1" == "D:" goto ginstall
  151. if "%1" == "d:" goto ginstall
  152. if "%1" == "e" goto installa
  153. if "%1" == "E:" goto ginstall
  154. if "%1" == "e:" goto ginstall
  155. if "%1" == "f" goto installa
  156. if "%1" == "F:" goto ginstall
  157. if "%1" == "f:" goto ginstall
  158. if "%1" == "G:" goto ginstall
  159. if "%1" == "G" goto installa
  160. if "%1" == "g" goto installa
  161. if "%1" == "g:" goto ginstall
  162. if "%1" == "H:" goto ginstall
  163. if "%1" == "H" goto installa
  164. if "%1" == "h" goto installa
  165. if "%1" == "h:" goto ginstall
  166. if "%1" == "I:" goto ginstall
  167. if "%1" == "I" goto installa
  168. if "%1" == "i" goto installa
  169. if "%1" == "i:" goto ginstall
  170. if "%1" == "J:" goto ginstall
  171. if "%1" == "J" goto installa
  172. if "%1" == "j" goto installa
  173. if "%1" == "j:" goto ginstall
  174. if "%1" == "K:" goto ginstall
  175. if "%1" == "K" goto installa
  176. if "%1" == "k" goto installa
  177. if "%1" == "k:" goto ginstall
  178. if "%1" == "L:" goto ginstall
  179. if "%1" == "L" goto installa
  180. if "%1" == "l" goto installa
  181. if "%1" == "l:" goto ginstall
  182. if "%1" == "M:" goto ginstall
  183. if "%1" == "M" goto installa
  184. if "%1" == "m" goto installa
  185. if "%1" == "m:" goto ginstall
  186. if "%1" == "N:" goto ginstall
  187. if "%1" == "N" goto installa
  188. if "%1" == "n" goto installa
  189. if "%1" == "n:" goto ginstall
  190. if "%1" == "O:" goto ginstall
  191. if "%1" == "O" goto installa
  192. if "%1" == "o" goto installa
  193. if "%1" == "o:" goto ginstall
  194. if "%1" == "P:" goto ginstall
  195. if "%1" == "P" goto installa
  196. if "%1" == "p" goto installa
  197. if "%1" == "p:" goto ginstall
  198. if "%1" == "Q:" goto ginstall
  199. if "%1" == "Q" goto installa
  200. if "%1" == "q" goto installa
  201. if "%1" == "q:" goto ginstall
  202. if "%1" == "R:" goto ginstall
  203. if "%1" == "R" goto installa
  204. if "%1" == "r" goto installa
  205. if "%1" == "r:" goto ginstall
  206. if "%1" == "S:" goto ginstall
  207. if "%1" == "S" goto installa
  208. if "%1" == "s" goto installa
  209. if "%1" == "s:" goto ginstall
  210. if "%1" == "T:" goto ginstall
  211. if "%1" == "T" goto installa
  212. if "%1" == "t" goto installa
  213. if "%1" == "t:" goto ginstall
  214. if "%1" == "U:" goto ginstall
  215. if "%1" == "U" goto installa
  216. if "%1" == "u" goto installa
  217. if "%1" == "u:" goto ginstall
  218. if "%1" == "v:" goto ginstall
  219. if "%1" == "v" goto installa
  220. if "%1" == "V" goto installa
  221. if "%1" == "V:" goto ginstall
  222. if "%1" == "W:" goto ginstall
  223. if "%1" == "W" goto installa
  224. if "%1" == "w" goto installa
  225. if "%1" == "w:" goto ginstall
  226. if "%1" == "x:" goto ginstall
  227. if "%1" == "x" goto installa
  228. if "%1" == "X" goto installa
  229. if "%1" == "X:" goto ginstall
  230. if "%1" == "Y:" goto ginstall
  231. if "%1" == "Y" goto installa
  232. if "%1" == "y" goto installa
  233. if "%1" == "y:" goto ginstall
  234. if "%1" == "z:" goto ginstall
  235. if "%1" == "z" goto installa
  236. if "%1" == "Z" goto installa
  237. if "%1" == "Z:" goto ginstall
  238. if "%1" == "a:" goto jinstall
  239. if "%1" == "a" goto hinstall
  240. if "%1" == "A" goto hinstall
  241. if "%1" == "A:" goto jinstall
  242. if "%1" == "b:" goto jinstall
  243. if "%1" == "b" goto hinstall
  244. if "%1" == "B" goto hinstall
  245. if "%1" == "B:" goto jinstall
  246. @echo off
  247. CLS
  248. ECHO Drive specifier %1 not recognized.
  249. echo.
  250. echo You typed the following command:
  251. echo.
  252. echo     TCNSTALL %1 %2
  253. ECHO.
  254. ECHO Try again with a different drive specifier.  Or type TCNSTALL ? for
  255. echo more information.
  256. echo.
  257. goto end
  258. :warning2
  259. cls
  260. echo WARNING!!!
  261. echo.
  262. echo A copy of the TCN program already exists.  If you continue, it will be
  263. echo overwritten and any previous work you have done will be lost.
  264. echo.
  265. echo To avoid overwriting, use the CTRL + C key combination and then type a Y
  266. echo according to the following instructions:
  267. echo.
  268. echo     1)  Press and hold the CTRL key.
  269. echo     2)  Type the letter C.
  270. echo     3)  Release both keys.  A prompt appears "Terminate batch job (Y/N)?"
  271. echo     4)  Type the letter Y.
  272. echo.
  273. echo The DOS prompt appears.  Type TCNSTALL ? to get information about changing
  274. echo install target drive and directory.
  275. echo.
  276. echo If you want to overwrite, press any other key.
  277. echo.
  278. pause
  279. cls
  280. echo Press and hold the "Y" key to overwrite all files.  When you hear
  281. echo rapid beeping sounds coming from your computer, release the "Y" key.
  282. echo When file extraction stops, hold the "Y" key down some more.
  283. echo.
  284. echo Continue this process until you get a DOS prompt.
  285. echo.
  286. goto chk1m
  287. :hinstall
  288. if exist %1:\TCnstall.bat goto failsame
  289. goto installa
  290. :jinstall
  291. if exist %1\TCnstall.bat goto failsame
  292. :ginstall
  293. @echo off
  294. if not "%2" == ""  goto installm
  295. if exist %1\usa\options.lxx goto warning2
  296. if exist %1\usa\*.* goto fail3
  297. goto chk1m 
  298. :installm
  299. if exist %1\%2\options.lxx goto warning2
  300. if exist %1\%2\*.* goto fail3
  301. :chk1m
  302. if "%2" == "" TCND31AB %1\usa
  303. if not "%2" == "" TCND31AB %1\%2
  304. :CHKBB2
  305. IF EXIST TCND31BB.EXE GOTO BB2
  306. CLS
  307. ECHO INSERT DISK 2 OF 2 WITH TCND31BB.EXE ON IT.
  308. ECHO.
  309. PAUSE
  310. GOTO CHKBB2
  311. :BB2
  312.  
  313. if "%2" == "" TCND31BB %1\usa  
  314. if not "%2" == "" TCND31BB %1\%2
  315. goto passa
  316. :failsame
  317. @echo off
  318. cls
  319. echo Installation not attempted.
  320. echo.
  321. echo The command you typed:
  322. echo.
  323. echo      TCNSTALL %1 %2
  324. echo.
  325. echo would result in the TCN program being installed on the same drive (%1)
  326. echo as the source disk.  This most often results in an "Insufficient Disk
  327. echo Space" error.
  328. echo.
  329. echo Try typing the TCNSTALL command with a different drive specifier.  Or
  330. echo Type TCNSTALL ? or just TCNSTALL for more information.
  331. echo.
  332. goto end
  333. :passa
  334. if "%2" == "" if not exist %1\usa\tucsna.wtp goto fail1
  335. if NOT "%2" == "" if not exist %1\%2\tucsna.wtp goto fail1
  336. cls
  337. echo Installation was SUCCESSFUL.
  338. echo.
  339. echo To start the TCN program:
  340. echo.
  341. echo     1)  Type %1 
  342. echo     2)  Press ENTER.
  343. if "%2" == ""  goto step3a
  344. echo     3)  Type CD \%2
  345. if exist %1\%2\wtp.tcn del %1\%2\wtp.tcn
  346. rename %1\%2\tucsna.wtp wtp.tcn
  347. goto step4
  348. :step3a
  349. echo     3)  Type CD \USA
  350. if exist %1\usa\wtp.tcn del %1\usa\wtp.tcn 
  351. rename %1\usa\tucsna.wtp wtp.tcn
  352. goto step4
  353. :pass1
  354. if "%2" == "" if not exist %1:\usa\tucsna.wtp goto fail1
  355. if NOT "%2" == "" if not exist %1:\%2\tucsna.wtp goto fail1
  356. cls
  357. echo Installation was SUCCESSFUL.
  358. echo.
  359. echo To start the TCN program:
  360. echo.
  361. echo     1)  Type %1: 
  362. echo     2)  Press ENTER.
  363. if "%2" == "" goto step3a1
  364. echo     3)  Type CD \%2
  365. if exist %1:\%2\wtp.tcn del %1:\%2\wtp.tcn
  366. rename %1:\%2\tucsna.wtp wtp.tcn
  367. goto step4
  368. :step3a1
  369. echo     3)  Type CD \USA
  370. if exist %1:\usa\wtp.tcn del %1:\usa\wtp.tcn
  371. rename %1:\usa\tucsna.wtp wtp.tcn
  372. :step4
  373. echo     4)  Press ENTER.
  374. echo     5)  Type TCN
  375. echo     6)  Press ENTER
  376. echo.
  377. echo.
  378. :end
  379.